import request from "./request"
//分页查询
export const PageQuery = (params) => {
  return request({
    url: "/singer/Page",
    method: "get",
    params: params
  })
}

export const addSinger = (data) => {
  return request({
    url: "/singer/addSinger",
    method: "post",
    data: data
  })
}
export const DeleteSinger = (id) => {
  return request({
    url: "/singer/deleteSinger",
    method: "delete",
    params:{
      id : id
    }
  })
}

export const SelectSingerById = (id) => {
  return request({
    url: `/singer/${id}`,
    method: "get"
  })
}

export const UpdateById = (params) => {
  return request({
    url: "/singer/update",
    method: "put",
    data : params
  })
}